.top-bar{
    height: 48px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;

}
.menu-icon{
    .icon{
        // background-color: #bfa;
        width: 18px;
        height: 48px;
        position: relative;

        li{
            width: 18px;
            height: 1px;
            background-color: rgb(255, 255, 255);
            position: absolute;
            // 改变变形的原点
            transform-origin: left center;
            transition: 0.5s;
        }
        li:nth-child(1){
            top: 18px;
            
        }
        li:nth-child(2){
            top: 24px;
            
            
        }
        li:nth-child(3){
            top: 30px;
            
        }
        &:hover{
            li:nth-child(1){
              
                transform: rotateZ(40deg);
            }
            li:nth-child(2){
                
                // 隐藏
                opacity: 0;
            }
            li:nth-child(3){
                
                transform: rotateZ(-40deg);
            }
        }
    }
}